import request from '@/utils/request'


export function allDoctorList (query)  {
  return request({
    url: 'doctor/list',
    method: 'get',
    params: query
  })
}

export function getInfo ()  {
  return request({
    url: 'doctor/getInfo',
    method: 'get',
  })
}
// 修改用户
export function updateDoctor(data) {
  return request({
    url: '/doctor/updateDoctor',
    method: 'put',
    data: data
  })
}

export function addDoctor (data)  {
  return request({
    url: 'doctor/insertDoctor',
    method: 'post',
    data: data
  })
}
// 删除用户
export function deleteDoctor(id) {
  return request({
    url: 'doctor/deleteDoctor/' + id,
    method: 'delete'
  })
}
